-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/stagingBuildTimes #1008
Feat/stagingBuildTimes #1008
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking comments
siteId, | ||
}, | ||
}), | ||
() => new NotFoundError("Site has not been deployed!") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this should be a different error since it means the DB couldn't be queried.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait no in this case the deployments row doesnt exist, so it is the case that the site has not been deployed!
src/types/stagingBuildStatus.ts
Outdated
@@ -0,0 +1,10 @@ | |||
export const statusStates = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: this should be fully capitalised with snake case
isReduceBuildTimesWhitelistedRepo(growthbook) | ||
) | ||
) | ||
.andThen((status) => okAsync({ status })) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: should use .map
instead
src/services/infra/InfraService.ts
Outdated
@@ -37,6 +37,7 @@ import { | |||
SiteLaunchStatusObject, | |||
} from "@root/types/siteInfo" | |||
import { SiteLaunchMessage } from "@root/types/siteLaunch" | |||
import { isReduceBuildTimesWhitelistedRepo } from "@root/utils/growthbook-utils" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unused?
ba8ac43
to
666f8a6
Compare
Problem
BE for staging build status. Corresponding FE pr
Closes [insert issue #]
Solution
Get the latest commit as SOT.
Tests
done in fe